<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>跑马灯</title>
</head>
<body>

<div id="app">
    <counter></counter>
</div>


<script src="./node_modules/vue/dist/vue.js"></script>
<script>

    //全局组件
    Vue.component("counter", {
        template: '<button v-on:click="count++">你点了我 {{ count }} 次，我记住了.</button>'
        , data() {
            return {
                count: 0
            }
        }


    })

</script>


</body>
</html>